package com.zkthink.ceres.applet.comment.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zkthink.base.R;
import com.zkthink.ceres.applet.comment.domain.entity.AppletComment;
import com.zkthink.ceres.applet.comment.domain.vo.AddOrderCommonVo;
import com.zkthink.ceres.applet.comment.domain.vo.AddServerOrderCommentsVo;
import com.zkthink.ceres.applet.comment.service.AppletCommentService;
import com.zkthink.ceres.applet.common.domin.PageDate;
import com.zkthink.ceres.applet.server.domain.vo.PageDateCommentVo;
import com.zkthink.ceres.order.vo.comment.MyCommentVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author cmz
 * @Date 2024-04-28 17:41
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/applet/comment")
@Api(value = "comment", tags = "评论信息")
public class AppletCommentController {
    @Autowired
    private AppletCommentService appletCommentService;

    /*@ApiOperation(value = "查询一级评论信息", notes = "查询一级评论信息")
    @PostMapping(value = "/findOneCommentById")
    public R findOneCommentById(@RequestBody PageDateCommentVo pageDateCommentVo) {
        return appletCommentService.findOneCommentById(pageDateCommentVo);
    }*/

    /*@ApiOperation(value = "添加订单评论", notes = "添加订单评论")
    @PostMapping(value = "/addServerOrderComments")
    public R addServerOrderComments(@RequestBody AddServerOrderCommentsVo commentsVo) {
        return appletCommentService.addServerOrderComments(commentsVo);
    }*/

    @ApiOperation(value = "添加订单评论", notes = "添加订单评论")
    @PostMapping(value = "/addOrderComments")
    public R addOrderComments(@RequestBody AddOrderCommonVo commentsVo) {
        return appletCommentService.addOrderComments(commentsVo);
    }


    /*@ApiOperation(value = "查询我的评论", notes = "查询我的评论")
    @PostMapping(value = "/findMyComment")
    public R<List<MyCommentVo>> findMyComment() {
        return appletCommentService.findMyComment();
    }*/

}
